using FubuMVC.Core;

namespace Fubu.HelloWorld2
{
	public class HelloWorldFubuRegistry : FubuRegistry {
		public HelloWorldFubuRegistry() {
			IncludeDiagnostics(true);

			Applies.ToThisAssembly();

			Actions
				.IncludeTypesNamed(x => x.EndsWith("Controller"));

			Routes
				.IgnoreControllerNamespaceEntirely();

			Views.TryToAttach(x => {
			                       	x.by_ViewModel_and_Namespace_and_MethodName();
			                       	x.by_ViewModel_and_Namespace();
			                       	x.by_ViewModel();
			});
		}
	}
}